package com.mdd.admin.validate.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.util.Date;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Date;
import java.util.Date;
import java.util.Date;
import java.util.Date;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 订单参数
 * @author LikeAdmin
 */
@Data
@ApiModel("订单更新参数")
public class OrderInfoUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "订单id")
    private Long id;

    @NotNull(message = "deptId参数缺失")
    @ApiModelProperty(value = "商家id")
    private Long deptId;

    @ApiModelProperty(value = "门店id")
    private Long storeId;

    @NotNull(message = "couponId参数缺失")
    @ApiModelProperty(value = "优惠券id")
    private Integer couponId;

    @NotNull(message = "orderSn参数缺失")
    @ApiModelProperty(value = "订单编号")
    private String orderSn;

    @NotNull(message = "userId参数缺失")
    @ApiModelProperty(value = "用户编号")
    private Long userId;

    @NotNull(message = "totalAmount参数缺失")
    @ApiModelProperty(value = "订单总金额")
    private BigDecimal totalAmount;

    @NotNull(message = "payAmount参数缺失")
    @ApiModelProperty(value = "应付金额（实际支付金额）")
    private BigDecimal payAmount;


    @NotNull(message = "sourceType参数缺失")
    @ApiModelProperty(value = "订单来源：0->PC订单；1->app订单")
    private Integer sourceType;


    @NotNull(message = "orderType参数缺失")
    @ApiModelProperty(value = "订单类型：0->购物订单；1->租赁订单")
    private Integer orderType;



    @NotNull(message = "note参数缺失")
    @ApiModelProperty(value = "订单备注")
    private String note;



}
